const express = require('express');
const router = express.Router();

let i = 0;
router.get('/', (req, res) => {
    const content = [
        {
            id: `${i + 1}`,
            code: `CODE${i + 1}`,
            name: `上海${i + 1}`,
            isLeaf: false
        },
        {
            id: `${i + 2}`,
            code: `CODE${i + 2}`,
            name: `上海${i + 2}`,
            isLeaf: true
        }
    ];
    i += 2;
    res.json({
        payload: {
            content
        }
    });
});
module.exports = router;
